package com.kimo.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.model.AttachFileGroup;

import java.util.List;

/**
 * @author kimo-taozhouchuan
 * @date 2021/7/7 17:20
 */
public interface AttachFileGroupService extends IService<AttachFileGroup> {

    /**
     * 获取列表
     * @param type
     * @return
     */
    List<AttachFileGroup> list(Integer type);

    /**
     * 根据id获取
     *
     * @param attachFileGroupId id
     * @return
     */
    AttachFileGroup getByAttachFileGroupId(Long attachFileGroupId);

    /**
     * 保存
     * @param attachFileGroup
     */

    void saveGroup(AttachFileGroup attachFileGroup);

    /**
     * 更新
     * @param attachFileGroup
     */
    void update(AttachFileGroup attachFileGroup);

    /**
     * 根据id删除
     * @param attachFileGroupId
     */
    void deleteById(Long attachFileGroupId);
}
